def test(String text){

    def encoded = text.bytes.encodeBase64().toString()
    println encoded

    byte[] decoded = encoded.decodeBase64()
    println new String(decoded)    
}

def text = "Going to convert this to Base64 encoding!"
test(text)

test("http://www.baidu.com;http://www.sohu.com")
